package com.tms.springboot.service.impl;

import com.tms.springboot.aggregation.pojo.PdOrder;
import com.tms.springboot.mapper.PdOrderMapper;
import com.tms.springboot.service.PdOrderService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.tms.springboot.vo.PdOrderCityVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 订单 服务实现类
 * </p>
 *
 * @author cjj
 * @since 2023-06-14
 */
@Service
public class PdOrderServiceImpl extends ServiceImpl<PdOrderMapper, PdOrder> implements PdOrderService {


    @Autowired
    private PdOrderMapper mapper;

    @Override
    public List<Map<String,Integer>> queryEverydayOrderNumber(String startDate, String endDate) {
        return this.mapper.queryEverydayOrderNumber(startDate, endDate);
    }

    @Override
    public List<PdOrderCityVo> querystatus(String id, Integer status,String orderid) {
        return this.mapper.querystatus(id,status,orderid);
    }
}
